package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LandMonitoringDataMapper;
import com.ruoyi.system.domain.LandMonitoringData;
import com.ruoyi.system.service.ILandMonitoringDataService;

/**
 * 陆上养殖场监测数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-18
 */
@Service
public class LandMonitoringDataServiceImpl implements ILandMonitoringDataService 
{
    @Autowired
    private LandMonitoringDataMapper landMonitoringDataMapper;

    /**
     * 查询陆上养殖场监测数据
     * 
     * @param id 陆上养殖场监测数据主键
     * @return 陆上养殖场监测数据
     */
    @Override
    public LandMonitoringData selectLandMonitoringDataById(Long id)
    {
        return landMonitoringDataMapper.selectLandMonitoringDataById(id);
    }

    /**
     * 查询陆上养殖场监测数据列表
     * 
     * @param landMonitoringData 陆上养殖场监测数据
     * @return 陆上养殖场监测数据
     */
    @Override
    public List<LandMonitoringData> selectLandMonitoringDataList(LandMonitoringData landMonitoringData)
    {
        return landMonitoringDataMapper.selectLandMonitoringDataList(landMonitoringData);
    }

    /**
     * 新增陆上养殖场监测数据
     * 
     * @param landMonitoringData 陆上养殖场监测数据
     * @return 结果
     */
    @Override
    public int insertLandMonitoringData(LandMonitoringData landMonitoringData)
    {
        return landMonitoringDataMapper.insertLandMonitoringData(landMonitoringData);
    }

    /**
     * 修改陆上养殖场监测数据
     * 
     * @param landMonitoringData 陆上养殖场监测数据
     * @return 结果
     */
    @Override
    public int updateLandMonitoringData(LandMonitoringData landMonitoringData)
    {
        return landMonitoringDataMapper.updateLandMonitoringData(landMonitoringData);
    }

    /**
     * 批量删除陆上养殖场监测数据
     * 
     * @param ids 需要删除的陆上养殖场监测数据主键
     * @return 结果
     */
    @Override
    public int deleteLandMonitoringDataByIds(Long[] ids)
    {
        return landMonitoringDataMapper.deleteLandMonitoringDataByIds(ids);
    }

    /**
     * 删除陆上养殖场监测数据信息
     * 
     * @param id 陆上养殖场监测数据主键
     * @return 结果
     */
    @Override
    public int deleteLandMonitoringDataById(Long id)
    {
        return landMonitoringDataMapper.deleteLandMonitoringDataById(id);
    }
}
